import requests

# 打开百度首页
response = requests.get('https://www.baidu.com')
# 设置编辑集
response.encoding = 'utf-8'
print(response.text)